/*
 * Copyright (c) 2009, Jan Pastor. All Rights Reserved.
 */

package sk.jp.commons.ui.bgproc;

import sk.jp.commons.utils.BackgroundProcess;
import sk.jp.commons.ui.ExceptionDialog;

/**
 * Handles bacground process failure to present exception dialog box.
 * <p>See package description for additional information.
 */
public class ProcessFailureHandler extends BackgroundProcess.StateAdapter {

    @Override
    public void processFinishedWithError(String processInfo, Throwable t) {
        ExceptionDialog.show(null, t);
    }

}
